/**
 * 
 */
package com.example.gametestproject;

import android.graphics.Color;
import android.graphics.PointF;

/**
 * @author HuXiaolong
 *
 */
public class FPSTestSprite extends TextSprite
{
	public FPSTestSprite()
	{
		super("60 fps", 30, Color.RED, Color.WHITE, Color.GREEN, 5,
				2, TextSprite.HorizontalAlignment.AlginRight, TextSprite.VerticalAlignment.AlignTop);
		this.setPosition(new PointF(ResourceManager.mScreenWidth, 40));
		this.setZOrder(10);
	}

	public void updateFPS(int fps)
	{
		this.setTextContent(String.format("%d fps", fps));
	}
}
